<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>在线答题</title>
<link href="styles/list.css" rel="stylesheet" type="text/css" />
<script src="styles/script.js" type="text/javascript"></script>
</head>

<body>
<s:form method="post" id="questionForm"  action="nextQuestion" onsubmit="return checkOption();" theme="simple">
<div id="container<s:property value="page"/>">
<div class="list">
<s:if test="questions.size > 0">
  <s:hidden name="page"/>
  <s:iterator value="questions" status="stat">
  <input type="hidden" name="questionId" value="<s:property value="id" />"/>
  <input type="hidden" name="questionValue" value=""/>
    <ul>
    <li><strong><s:property value="(page - 1) * 10 + #stat.index + 1" />.&nbsp;<s:property value="name" /></strong></li>
    <li><s:radio name="qItem[%{#stat.index}]" list="%{#{'1':'很不符合&nbsp;&nbsp;&nbsp;&nbsp;','2':'不符合&nbsp;&nbsp;&nbsp;&nbsp;','3':'不确定&nbsp;&nbsp;&nbsp;&nbsp;','4':'符合&nbsp;&nbsp;&nbsp;&nbsp;','5':'很符合&nbsp;&nbsp;&nbsp;&nbsp;'}}" value="%{value}" /></li>
    </ul>
  </s:iterator>
</s:if>
   <s:if test="page >= 9">
       <p><s:submit id="nextButton" value="答题完成，查看测评报告"  theme="simple" cssClass="comment_btn"/></p>
   </s:if>
   <s:else>
       <p><s:submit id="nextButton" value="  下 一 题  "  theme="simple" cssClass="comment_btn"/> <br/><img border="0" src="images/progress<s:property value="page"/>.PNG" width="492" height="22" /></p>
   </s:else>

</div>
</div>
</s:form>
</body>
</html>
